package com.base.cn.platform.os.service.manage.op.article;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 资讯内容接口
 * @author zsw
 * @create 2018-05-3
 */
@FeignClient(name = BaseService.appName , configuration = FeignAuthConfig.class)
public interface OpArticleContextService extends BaseService {
    /**
     * 根据资讯Id串 搜索资讯内容
     * @param articleIds 资讯Id串
     * @return
     */
    @RequestMapping(contextPath + "/op/queryArticleContextListByIds")
    Map<String,Object> queryArticleContextListByIds(@RequestParam("articleIds") String articleIds);

    /**
     * 根据资讯id搜索 资讯内容
     * @param articleId 资讯Id
     * @return
     */
    @RequestMapping(contextPath + "/op/queryArticleContextById")
    Map<String,Object> queryArticleContextById(@RequestParam("articleId") BigDecimal articleId);
}
